<?php
namespace tp5_lib\examine\utility;

use tp5_lib\examine\contract\Examine;

class DemoExamine extends Examine
{
    public $title = "Demo";
    public $manual = false;
    public function check()
    {
        if(!session("demo_examine_repaired")) return false;
        return true;
    }
    public function onFaultAppear()
    {
        return [
            "你好",
            "这是一个测试案例",
            "这个案例提供自动修复功能",
            "如果没有自动修复功能的情况下，请按照这里的引导进行修复",
        ];
    }
    public function repair()
    {
        session("demo_examine_repaired",true);
        return true;
    }
}
